﻿@model EditorialProyectos.Website.Models.AccountViewModel

@{
    ViewBag.Title = "Editorial Proyectos!";
}
@section Scripts{
    @Content.ViewModel("AccountViewModel.js", Url)
    @Content.ViewModel("LoginViewModel.js", Url)
    @Content.ViewModel("RegisterViewModel.js", Url)


    <script>
        var accountData = '{ "Login": ' + ' @Html.Raw(Model.Login.ToJson()) ' + ', "Register": ' + '  @Html.Raw(Model.Register.ToJson()) ' + ' } ';
        var accountJSON = JSON.parse(accountData);

        var viewModel = new AccountViewModel(accountJSON);
        ko.applyBindings(viewModel);
    </script>
}

<div class="jumbotron color-white">
    <div class="row">
        <div class="col-md-4">
            <h2>@Html.LocalizedText("LoginTitle") <span class="glyphicon glyphicon-log-in"></span></h2>
            @Html.Partial("_Login", Model.Login)
            <div class="separator-small"></div>
            <h2>@Html.LocalizedText("SignupTitle") <span class="glyphicon glyphicon-send"></span></h2>
            @Html.Partial("_Signup", Model.Register)
        </div>

        <div class="col-md-8">
            <h1 class="text-center"><i class="icon-swing"></i><strong>Editorial Proyectos</strong></h1>
        </div>
    </div>
</div>
